package com.itheima08;

public class Test {
    public static void main(String[] args) {
        method1(new JieKou() {
            @Override
            public String method() {
                return "hello";
            }
        });
        method1(() ->
             "world"
        );
    }

    public static void method1(JieKou j) {
        String result = j.method();
        System.out.println(result);
    }
}
